package com.filetest;


import java.io.PrintWriter;

public class PrintW {
    public static void main(String[] args) throws Exception {
        PrintWriter pw = new PrintWriter("D:/demo6.txt");
        pw.println("你好 world");
        pw.write("java");
        pw.flush();

        pw.close();
    }
}
